package tr.edu.yildiz.ce.dap.appagent.commands;

import tr.edu.yildiz.ce.dap.appagent.basic.BasicListenerMock;
import tr.edu.yildiz.ce.dap.appagent.model.App;
import tr.edu.yildiz.ce.dap.appagent.model.AppList;
import tr.edu.yildiz.ce.dap.appagent.model.DapMessage;

public class ListListenerMock extends BasicListenerMock{

	@Override
	public DapMessage reply(DapMessage input) {
		DapMessage dapMessage = new DapMessage();
		dapMessage.setAppList(new AppList());
		App app = new App();
		app.setName("sample_app");
		app.setVersion("2.3");
		dapMessage.getAppList().getApp().add(app);
		return dapMessage;
	}

}
